package io.gitee.yxsnake.embark.web.core.converter;

import io.gitee.yxsnake.embark.web.core.utils.JsonUtils;

/**
 * @author snake
 * @description
 * @since 2024/9/29 0:55
 */
public class JsonUtilsConvert {
    public static <T> T convert(Class<T> targetClass, Object source) {
        String strJson = JsonUtils.objectCovertToJson(source);
        return JsonUtils.jsonCovertToObject(strJson, targetClass);
    }
}
